﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;
using System.Text;
using System.Threading.Tasks;

namespace _010_RemotingServerHTTPInline
{
    class Program
    {
        static void Main(string[] args)
        {
            HttpChannel myChannel = new HttpChannel(25701);
            ChannelServices.RegisterChannel(myChannel, false);
            RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemotingServer),
                                                               "Revolve",
                                                               WellKnownObjectMode.Singleton);
            Console.WriteLine("Server started");
            Console.ReadLine();
        }
    }
}
